package com.css.fxfzypg.modules.baseData.service;

import com.css.fxfzypg.base.response.RestResponse;
import com.css.fxfzypg.modules.baseData.queryParams.EarthquakeDisasterQueryParams;
import com.css.fxfzypg.modules.baseData.entity.EarthquakeDisasterEntity;
import com.css.fxfzypg.modules.baseData.vo.EarthquakeDisasterVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author y1fan
 * @create 2022-08-17 17:10
 */
public interface EarthquakeDisasterService {


    Boolean saveEarthquakeDisaster(EarthquakeDisasterEntity earthquakeDisasterEntity);

    EarthquakeDisasterVO getEarthquakeDisasterById(String dataEarthquakeDisasterId);

    Map<String,Object> getAllEarthquakeDisasterByParams(EarthquakeDisasterQueryParams queryParams);

    Boolean updateEarthquakeDisaster(EarthquakeDisasterEntity earthquakeDisasterEntity);

    Boolean deleteEarthquakeDisaster(List<String> ids);

    void exportExcel(HttpServletResponse response, EarthquakeDisasterQueryParams queryParams);

    RestResponse importExcel(MultipartFile file);

    Integer countByCounty(String name);

    Integer countByCity(String name);

    Integer countByProvince(String name);
}
